<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>注册页面</title>
    <!--jQuery核心库-->
    <script src="validate/jquery-1.11.0.min.js"></script>
    <!--校验库-->
    <script src="validate/jquery.validator.min.js"></script>
    <!--<script src="validate/local/zh-CN.js"></script>-->
    <!--核心样式文件-->
    <link href="validate/jquery.validator.css" rel="stylesheet">
    <script src="validate/local/zh-CN.js"></script>
</head>
<body>

    <!--定义表单 form-->
    <form action="#" method="post">
        <table border="1" align="center" width="500">
            <tr>
                <td><label for="username">用户名</label></td>
                <!--required  必填的意思-->
                <td><input type="text" name="username" id="username" data-rule="用户名:required;length[4~10]"></td>
            </tr>

            <tr>
                <td><label for="password">密码</label></td>
                <td><input type="password" name="password"  data-rule="密码:required;password"id="password"></td>
            </tr>

            <tr>
                <td><label for="email">Email</label></td>
                <td><input type="email" name="email" id="email" data-rule="邮箱:required;email"></td>
            </tr>

            <tr>
                <td><label for="name">姓名</label></td>
                <td><input type="text" name="name" id="name"></td>
            </tr>
            <tr>
                <td><label for="age">年龄</label></td>
                <td><input type="text" name="age" id="age" data-rule="年龄:required;range[1~100]"></td>
            </tr>

            <tr>
                <td><label for="tel">手机号</label></td>
                <td><input type="text" name="tel" id="tel"
                           data-rule="required;mobile"
                           data-rule-mobile="[/^1[3456789]\d{9}$/,'请检查手机号格式']"
                ></td>
            </tr>

            <tr>
                <td><label>性别</label></td>
                <td><input type="radio" name="gender" value="male"> 男
                    <input type="radio" name="gender" value="female"> 女
                </td>
            </tr>

            <tr>
                <td><label for="birthday">出生日期</label></td>
                <td><input type="date" name="birthday" id="birthday"></td>
            </tr>

            <tr>
                <td><label for="checkcode">验证码</label></td>
                <td><input type="text" name="checkcode" id="checkcode">
                    <img src="img/verify_code.jpg">
                </td>
            </tr>


            <tr>
                <td colspan="2" align="center"><input type="submit" value="注册"></td>
            </tr>
        </table>


    </form>

</body>
</html>